package com.geekchique.runningbuddy.view;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ViewSwitcher.ViewFactory;

public class TodayView extends LinearLayout {
	
	private TextView miles;
	private TextView heading_jogname;
	private TextView timerun;

	public TodayView(Context context, TextView miles, TextView heading_jogname, TextView timerun){
		super(context);
		
        this.setOrientation(VERTICAL);
		this.miles = miles;
		this.heading_jogname = heading_jogname;
		this.timerun = timerun;
		
        TextView mTitle = new TextView(context);
        mTitle.setText("Blah");
        addView(mTitle, new LinearLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

        TextView mDialogue = new TextView(context);
        mDialogue.setText("words");
        addView(mDialogue, new LinearLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	}

	public TextView getMiles() {
		return miles;
	}

	public void setMiles(String text) {
		this.miles.setText(text);
	}

	public TextView getHeading_jogname() {
		return heading_jogname;
	}

	public void setHeading_jogname(String text) {
		this.heading_jogname.setText(text);
	}

	public TextView getTimerun() {
		return timerun;
	}

	public void setTimerun(String text) {
		this.timerun.setText(text);
	}

//	public void addAJogThatHappenedToday(String name, String timeInExpectedFormat) {
//		long longOfTimeRun = entry.stopTime - entry.startTime;
//
//		this.todayView.setHeading_jogname(entry.name);
//		this.todayView.setTimerun(TimerStringTools.getTimeInExpectedFormat(longOfTimeRun));
//	}

}
